package cn.kgc.client;

import cn.kgc.base.vo.OrderVo;
import cn.kgc.commons.vo.Result;
import lombok.extern.slf4j.Slf4j;
import org.springframework.http.HttpStatus;
import org.springframework.stereotype.Component;

/**
 * <p>添加描述信息</p>
 *
 * @author 卢传琪
 */
@Component
@Slf4j
public class OmsOrderFeignClientImpl implements OmsOrderFeignClient {
    @Override
    public Result<OrderVo> getOrderInfoByOrderSn(String orderSn) {
        log.error("根据订单号获得订单信息,服务接口降级:{}",orderSn);
        return Result.error(null,"http://mall-oms/order/getOrderInfoByOrderSn",
                HttpStatus.INTERNAL_SERVER_ERROR.value(),"error");
    }
}
